package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 户籍信息统计
 *
 * @author zhiyuan
 * @since 2023-02-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_analy_hj")
@Schema(name = "EduAnalyHj", title = "户籍信息统计", description = "户籍信息统计实体类")
public class EduAnalyHj extends Model<EduAnalyHj> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "eduAnalyHjId", title = "房产明细id")
    @TableId(value = "edu_Analy_hj_id", type = IdType.ASSIGN_ID)
    private String eduAnalyHjId;

    @Schema(name = "schoolId", title = " 学校id")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "schoolCategory", title = "学校类别")
    @TableField(value = "school_category")
    private String schoolCategory;

    @Schema(name = "del", title = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "idcard", title = "学生身份证")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "fatherIdcard", title = "父亲身份证")
    @TableField(value = "father_idcard")
    private String fatherIdcard;

    @Schema(name = "motherIdcard", title = "母亲身份证")
    @TableField(value = "mother_idcard")
    private String motherIdcard;

    @Schema(name = "hjType", title = "是否本地户籍（本地户籍+本地房产）")
    @TableField(value = "hj_type")
    private String hjType;

    @Schema(name = "year", title = "年度")
    @TableField(value = "year")
    private String year;

    @Schema(name = "areaCode", title = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;


    @Override
    public Serializable pkVal() {
        return this.eduAnalyHjId;
    }
}
